﻿using B.S.GridManger.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.GridManager.Infrastructure
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class SCDBContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options"></param>
        public SCDBContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 区域数据集
        /// </summary>
        public DbSet<AreaModel> AreaModels {  get; set; }
        /// <summary>
        /// 物理网格数据集
        /// </summary>
        public DbSet<PhysicalGridModel> PhysicalGridModels { get; set; }
        /// <summary>
        /// 部门数据集
        /// </summary>
        public DbSet<DepartmentModel> DepartmentModels { get; set; }
        /// <summary>
        /// 逻辑网格数据集
        /// </summary>
        public DbSet<LogicGridModel> LogicGridModels { get; set; }
    }
}
